import api from '../../utils/api';

export async function queryList(param) {
    return api.post('/cabinet/qryList', {
      data: JSON.stringify(param),
    });
}
export async function queryRackList(param) {
  return api.post('/cabinet/list', {
    data: JSON.stringify(param),
  });
}

export async function qryById(param) {
  return api.post('/cabinet/qryById', {
    data: JSON.stringify(param),
  });
}
export async function create(param) {
  return api.post('/cabinet/create', {
    data: JSON.stringify(param),
  });
}
export async function edit(param) {
  return api.post('/cabinet/edit', {
    data: JSON.stringify(param),
  });
}

export async function remove(param) {
  return api.post('/cabinet/remove', {
    data: JSON.stringify(param),
  });
}
export async function qryCabinetExtList(param) {
  return api.post('/cabinet/qryCabinetExtList', {
    data: JSON.stringify(param),
  });
}


export async function queryRackTypeList() {
  return api.post('/cabinet/qryRackTypeList');
}

export async function queryRackModelList(param) {
  return api.post('/cabinet/qryRackModelList', {
    data: JSON.stringify(param),
  });
}

export async function queryCabinetGroupList() {
  return api.post('/cabinetGroup/queryAllList');
}

export async function searchTemperature(param) {
  return api.post('/cabinet/searchTemperature', {
    data: JSON.stringify(param),
  });
}
